#ifndef QTLASERSPRITE_H
#define QTLASERSPRITE_H


#include "QtPixmapSprite.h"
#include "QtLineSprite.h"
#include "Direction.h"
#include "Resourceable.h"

class QtLaserSprite: public QtPixmapSprite, public Resourceable
{
public:
	QtLaserSprite(QtSprite *parent = 0);
	~QtLaserSprite();

	void Shoot();
	void SetLaserDestination(unsigned int targetCellX, unsigned int targetCellY);
	void SetDirection(const Direction& direction);
	void SetCellSize(unsigned int width, unsigned int height);
	void SetLaserColor(const QColor& color);

protected:


private:
	unsigned int duration;
	QtLineSprite *laserBeam;
	QPointF laserDestination;
	unsigned int cellWidth, cellHeight;
};

#endif //QTLASERSPRITE_H